Skip to content

115 Add description to projects#138

Open
Rayna-Yu wants to merge 2 commits intomainfrom
115-add-project-descriptions
Open

115 Add description to projects#138
Rayna-Yu wants to merge 2 commits intomainfrom
115-add-project-descriptions

Conversation

@Rayna-Yu
Copy link
Contributor

#115

Closes

📝 Description

Added descriptions to projects.

Briefly list the changes made to the code:

  1. Added and updated the seed database
  2. updated the CRUD endpoints to have description
  3. updated the tests to account for descriptions

✔️ Verification

Ran tests and added descriptions to the tests.

🏕️ (Optional) Future Work / Notes

N/A

@Rayna-Yu Rayna-Yu marked this pull request as ready for review February 19, 2026 03:41
@github-actions github-actions bot requested a review from tsudhakar87 February 19, 2026 03:41
github-actions bot added a commit that referenced this pull request Feb 19, 2026
Copy link
Contributor

@tsudhakar87 tsudhakar87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me! just had some minor questions

// validates optional description field - if provided, trims the whitespace
static validateDescription(input: unknown): ValidationResult<string | null> {
if (input === undefined || input === null) {
return { isValid: true, value: null };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to confirm my understanding, are there any cases we would be returning isValid with false?

expect(json.description).toBe('Unit test project description');
});

// Validation errors (400)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need a test case for an invalid description here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments